home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9700 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  799 b 

  1. Path: pine.netten.net!usenet
  2. From: trahan <trahan@ebicom.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Question:obtaining local ip address
  5. Date: Tue, 12 Mar 1996 15:06:01 -0600
  6. Organization: None
  7. Message-ID: <3145E739.46A8@ebicom.net>
  8. NNTP-Posting-Host: b2.netten.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win95; I)
  13.  
  14. I need to be able to determine the ip address my server assigns me when 
  15. I log on through c or c++.  As of yet, the only IP address I can find is 
  16. the host ip address of where I am connecting to on the other end of the 
  17. connection, i.e. gethostbyname.  Can someone email me an answer with 
  18. some source code on how to accomplish this task?  It is getting quite 
  19. irritating.
  20.  
  21. email me at trahan@ebicom.net
  22. Thanks!
  23.